home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 63 6c | 61 72 69 73 2e 63 6c 61 |Path: cl|aris.cla|
|00000010| 72 69 73 2e 63 6f 6d 21 | 75 73 65 6e 65 74 0a 46 |ris.com!|usenet.F|
|00000020| 72 6f 6d 3a 20 52 61 79 | 6d 6f 6e 64 20 46 69 73 |rom: Ray|mond Fis|
|00000030| 63 68 65 72 20 3c 72 61 | 79 6d 6f 6e 64 5f 66 69 |cher <ra|ymond_fi|
|00000040| 73 63 68 65 72 40 71 6d | 2e 63 6c 61 72 69 73 2e |scher@qm|.claris.|
|00000050| 63 6f 6d 3e 0a 4e 65 77 | 73 67 72 6f 75 70 73 3a |com>.New|sgroups:|
|00000060| 20 63 6f 6d 70 2e 6c 61 | 6e 67 2e 63 2b 2b 2c 63 | comp.la|ng.c++,c|
|00000070| 6f 6d 70 2e 6c 61 6e 67 | 2e 63 0a 53 75 62 6a 65 |omp.lang|.c.Subje|
|00000080| 63 74 3a 20 52 65 3a 20 | 50 65 72 66 6f 72 6d 61 |ct: Re: |Performa|
|00000090| 6e 63 65 3a 20 43 20 76 | 73 2e 20 43 2b 2b 0a 44 |nce: C v|s. C++.D|
|000000a0| 61 74 65 3a 20 46 72 69 | 2c 20 31 39 20 4a 61 6e |ate: Fri|, 19 Jan|
|000000b0| 20 31 39 39 36 20 31 36 | 3a 35 33 3a 34 31 20 2d | 1996 16|:53:41 -|
|000000c0| 30 37 30 30 0a 4f 72 67 | 61 6e 69 7a 61 74 69 6f |0700.Org|anizatio|
|000000d0| 6e 3a 20 43 6c 61 72 69 | 73 0a 4d 65 73 73 61 67 |n: Clari|s.Messag|
|000000e0| 65 2d 49 44 3a 20 3c 33 | 31 30 30 32 46 30 35 2e |e-ID: <3|1002F05.|
|000000f0| 31 42 35 33 40 71 6d 2e | 63 6c 61 72 69 73 2e 63 |1B53@qm.|claris.c|
|00000100| 6f 6d 3e 0a 52 65 66 65 | 72 65 6e 63 65 73 3a 20 |om>.Refe|rences: |
|00000110| 3c 33 30 46 36 42 41 41 | 43 2e 31 32 42 35 40 69 |<30F6BAA|C.12B5@i|
|00000120| 61 73 74 61 74 65 2e 65 | 64 75 3e 0a 52 65 70 6c |astate.e|du>.Repl|
|00000130| 79 2d 54 6f 3a 20 72 61 | 79 6d 6f 6e 64 5f 66 69 |y-To: ra|ymond_fi|
|00000140| 73 63 68 65 72 40 71 6d | 2e 63 6c 61 72 69 73 2e |scher@qm|.claris.|
|00000150| 63 6f 6d 0a 4e 4e 54 50 | 2d 50 6f 73 74 69 6e 67 |com.NNTP|-Posting|
|00000160| 2d 48 6f 73 74 3a 20 31 | 39 38 2e 31 38 33 2e 31 |-Host: 1|98.183.1|
|00000170| 37 2e 36 39 0a 4d 69 6d | 65 2d 56 65 72 73 69 6f |7.69.Mim|e-Versio|
|00000180| 6e 3a 20 31 2e 30 0a 43 | 6f 6e 74 65 6e 74 2d 54 |n: 1.0.C|ontent-T|
|00000190| 79 70 65 3a 20 74 65 78 | 74 2f 70 6c 61 69 6e 3b |ype: tex|t/plain;|
|000001a0| 20 63 68 61 72 73 65 74 | 3d 75 73 2d 61 73 63 69 | charset|=us-asci|
|000001b0| 69 0a 43 6f 6e 74 65 6e | 74 2d 54 72 61 6e 73 66 |i.Conten|t-Transf|
|000001c0| 65 72 2d 45 6e 63 6f 64 | 69 6e 67 3a 20 37 62 69 |er-Encod|ing: 7bi|
|000001d0| 74 0a 58 2d 4d 61 69 6c | 65 72 3a 20 4d 6f 7a 69 |t.X-Mail|er: Mozi|
|000001e0| 6c 6c 61 20 32 2e 30 62 | 35 20 28 4d 61 63 69 6e |lla 2.0b|5 (Macin|
|000001f0| 74 6f 73 68 3b 20 49 3b | 20 50 50 43 29 0a 0a 53 |tosh; I;| PPC)..S|
|00000200| 74 65 76 65 20 4c 65 65 | 20 77 72 6f 74 65 3a 0a |teve Lee| wrote:.|
|00000210| 3e 20 49 20 77 61 73 20 | 77 6f 6e 64 65 72 69 6e |> I was |wonderin|
|00000220| 67 20 69 66 20 61 6e 79 | 6f 6e 65 20 63 6f 75 6c |g if any|one coul|
|00000230| 64 20 74 65 6c 6c 20 6d | 65 20 77 68 61 74 20 74 |d tell m|e what t|
|00000240| 68 65 20 64 69 66 66 65 | 72 65 6e 63 65 20 69 6e |he diffe|rence in|
|00000250| 20 70 65 72 66 6f 72 6d | 61 6e 63 65 20 77 6f 75 | perform|ance wou|
|00000260| 6c 64 20 62 65 20 62 65 | 74 77 65 65 6e 0a 3e 20 |ld be be|tween.> |
|00000270| 77 72 69 74 69 6e 67 20 | 61 20 70 72 6f 67 72 61 |writing |a progra|
|00000280| 6d 20 69 6e 20 43 2b 2b | 20 76 73 2e 20 43 2e 20 |m in C++| vs. C. |
|00000290| 20 41 73 73 75 6d 65 20 | 74 68 61 74 20 74 68 65 | Assume |that the|
|000002a0| 20 63 6f 6d 70 69 6c 65 | 72 73 20 61 72 65 20 62 | compile|rs are b|
|000002b0| 6f 74 68 20 6f 66 20 65 | 71 75 61 6c 20 71 75 61 |oth of e|qual qua|
|000002c0| 6c 69 74 79 2e 20 20 49 | 20 6b 6e 6f 77 0a 3e 20 |lity. I| know.> |
|000002d0| 74 68 61 74 20 63 65 72 | 74 61 69 6e 20 66 65 61 |that cer|tain fea|
|000002e0| 74 75 72 65 73 20 73 75 | 63 68 20 61 73 20 76 69 |tures su|ch as vi|
|000002f0| 72 74 75 61 6c 20 66 75 | 6e 63 74 69 6f 6e 73 20 |rtual fu|nctions |
|00000300| 61 6e 64 20 65 78 63 65 | 70 74 69 6f 6e 20 68 61 |and exce|ption ha|
|00000310| 6e 64 6c 69 6e 67 20 61 | 64 64 20 6f 76 65 72 68 |ndling a|dd overh|
|00000320| 65 61 64 2e 20 20 41 72 | 65 20 74 68 65 72 65 0a |ead. Ar|e there.|
|00000330| 3e 20 61 6e 79 20 6f 74 | 68 65 72 73 3f 20 20 49 |> any ot|hers? I|
|00000340| 66 20 79 6f 75 20 64 6f | 6e 27 74 20 69 6d 70 6c |f you do|n't impl|
|00000350| 65 6d 65 6e 74 20 74 68 | 65 73 65 20 66 65 61 74 |ement th|ese feat|
|00000360| 75 72 65 73 20 74 68 61 | 74 20 61 64 64 20 74 68 |ures tha|t add th|
|00000370| 65 20 65 78 74 72 61 20 | 6f 76 65 72 68 65 61 64 |e extra |overhead|
|00000380| 2c 20 69 73 20 43 2b 2b | 20 64 69 72 65 63 74 6c |, is C++| directl|
|00000390| 79 0a 3e 20 63 6f 6d 70 | 61 72 61 62 6c 65 20 74 |y.> comp|arable t|
|000003a0| 6f 20 43 20 69 6e 20 70 | 65 72 66 6f 72 6d 61 6e |o C in p|erforman|
|000003b0| 63 65 20 74 68 65 6e 3f | 20 20 54 68 65 20 6f 6e |ce then?| The on|
|000003c0| 6c 79 20 6f 74 68 65 72 | 20 72 65 61 73 6f 6e 20 |ly other| reason |
|000003d0| 49 20 63 6f 75 6c 64 20 | 73 65 65 20 43 2b 2b 20 |I could |see C++ |
|000003e0| 62 65 69 6e 67 20 73 6c | 6f 77 65 72 20 74 68 61 |being sl|ower tha|
|000003f0| 6e 20 43 0a 3e 20 69 73 | 20 70 72 6f 67 72 61 6d |n C.> is| program|
|00000400| 6d 69 6e 67 20 73 74 79 | 6c 65 2e 20 20 4f 62 6a |ming sty|le. Obj|
|00000410| 65 63 74 2d 6f 72 69 65 | 6e 74 65 64 20 69 73 20 |ect-orie|nted is |
|00000420| 73 6c 6f 77 65 72 20 73 | 69 6e 63 65 20 74 68 65 |slower s|ince the|
|00000430| 72 65 20 61 72 65 20 6d | 6f 72 65 20 6c 61 79 65 |re are m|ore laye|
|00000440| 72 73 2c 20 68 65 6e 63 | 65 20 66 75 6e 63 74 69 |rs, henc|e functi|
|00000450| 6f 6e 20 63 61 6c 6c 0a | 3e 20 6f 76 65 72 68 65 |on call.|> overhe|
|00000460| 61 64 2e 0a 3e 20 0a 3e | 20 41 6e 79 6f 6e 65 20 |ad..> .>| Anyone |
|00000470| 77 69 74 68 20 73 6f 6d | 65 20 61 6e 73 77 65 72 |with som|e answer|
|00000480| 73 2c 20 64 69 73 61 67 | 72 65 65 6d 65 6e 74 73 |s, disag|reements|
|00000490| 3f 20 20 54 68 61 6e 6b | 73 2e 0a 0a 48 6d 6d 6d |? Thank|s...Hmmm|
|000004a0| 2e 20 20 54 77 6f 20 61 | 6e 73 77 65 72 73 20 74 |. Two a|nswers t|
|000004b0| 6f 20 74 68 61 74 20 6f | 6e 65 2e 20 20 42 6f 74 |o that o|ne. Bot|
|000004c0| 68 20 73 6f 6d 65 77 68 | 61 74 20 73 75 62 6a 65 |h somewh|at subje|
|000004d0| 63 74 69 76 65 2e 0a 0a | 46 69 72 73 74 3a 20 41 |ctive...|First: A|
|000004e0| 20 70 72 6f 67 72 61 6d | 20 74 68 61 74 20 64 6f | program| that do|
|000004f0| 65 73 6e 27 74 20 72 75 | 6e 20 64 6f 65 73 6e 27 |esn't ru|n doesn'|
|00000500| 74 20 72 75 6e 20 71 75 | 69 63 6b 6c 79 2e 20 20 |t run qu|ickly. |
|00000510| 43 2b 2b 20 63 61 6e 20 | 6d 61 6b 65 20 66 6f 72 |C++ can |make for|
|00000520| 20 66 65 77 65 72 20 62 | 75 67 73 20 69 6e 20 74 | fewer b|ugs in t|
|00000530| 68 65 0a 72 65 73 75 6c | 74 69 6e 67 20 70 72 6f |he.resul|ting pro|
|00000540| 67 72 61 6d 20 61 6e 64 | 20 63 61 6e 20 61 6c 6c |gram and| can all|
|00000550| 6f 77 20 79 6f 75 20 74 | 6f 20 70 72 6f 64 75 63 |ow you t|o produc|
|00000560| 65 20 61 20 77 6f 72 6b | 69 6e 67 20 70 72 6f 67 |e a work|ing prog|
|00000570| 72 61 6d 20 71 75 69 63 | 6b 65 72 2e 20 20 49 6e |ram quic|ker. In|
|00000580| 20 74 68 61 74 20 73 65 | 6e 73 65 0a 43 2b 2b 20 | that se|nse.C++ |
|00000590| 69 73 20 66 61 73 74 65 | 72 2e 0a 0a 53 65 63 6f |is faste|r...Seco|
|000005a0| 6e 64 3a 20 43 2b 2b 20 | 74 65 6e 64 73 20 74 6f |nd: C++ |tends to|
|000005b0| 20 62 65 20 73 6c 6f 77 | 65 72 20 69 6e 20 65 78 | be slow|er in ex|
|000005c0| 65 63 75 74 69 6f 6e 20 | 2d 20 61 73 73 75 6d 69 |ecution |- assumi|
|000005d0| 6e 67 20 74 68 61 74 20 | 79 6f 75 20 75 73 65 20 |ng that |you use |
|000005e0| 43 2b 2b 20 66 65 61 74 | 75 72 65 73 2e 20 20 56 |C++ feat|ures. V|
|000005f0| 69 72 74 75 61 6c 0a 66 | 75 6e 63 74 69 6f 6e 73 |irtual.f|unctions|
|00000600| 20 69 6e 76 6f 6c 76 65 | 20 6c 6f 6f 6b 75 70 73 | involve| lookups|
|00000610| 2c 20 61 6c 74 68 6f 75 | 67 68 20 79 6f 75 20 63 |, althou|gh you c|
|00000620| 61 6e 20 61 76 6f 69 64 | 20 74 68 61 74 20 62 79 |an avoid| that by|
|00000630| 20 6e 6f 74 20 75 73 69 | 6e 67 20 76 69 72 74 75 | not usi|ng virtu|
|00000640| 61 6c 20 66 75 6e 63 74 | 69 6f 6e 73 2e 0a 54 68 |al funct|ions..Th|
|00000650| 65 20 6c 61 74 65 73 74 | 20 63 6f 6d 70 69 6c 65 |e latest| compile|
|00000660| 72 73 20 28 6f 6e 20 74 | 68 65 20 4d 61 63 29 20 |rs (on t|he Mac) |
|00000670| 70 72 6f 76 69 64 65 20 | 7a 65 72 6f 2d 6f 76 65 |provide |zero-ove|
|00000680| 72 68 65 61 64 20 65 78 | 63 65 70 74 69 6f 6e 73 |rhead ex|ceptions|
|00000690| 2e 20 20 42 75 74 20 77 | 68 65 72 65 20 43 2b 2b |. But w|here C++|
|000006a0| 20 74 65 6e 64 73 20 74 | 6f 0a 63 61 75 73 65 20 | tends t|o.cause |
|000006b0| 74 68 65 20 67 72 65 61 | 74 65 73 74 20 70 72 6f |the grea|test pro|
|000006c0| 62 6c 65 6d 73 20 77 69 | 74 68 20 70 65 72 66 6f |blems wi|th perfo|
|000006d0| 72 6d 61 6e 63 65 20 69 | 73 20 69 6e 20 68 69 64 |rmance i|s in hid|
|000006e0| 64 65 6e 20 66 75 6e 63 | 74 69 6f 6e 20 63 61 6c |den func|tion cal|
|000006f0| 6c 73 2e 20 20 54 68 65 | 20 6d 6f 73 74 20 6e 6f |ls. The| most no|
|00000700| 74 6f 72 69 6f 75 73 0a | 6f 66 20 74 68 65 73 65 |torious.|of these|
|00000710| 20 69 73 20 74 68 65 20 | 63 61 6c 6c 20 6f 66 20 | is the |call of |
|00000720| 74 68 65 20 63 6f 70 79 | 20 63 6f 6e 73 74 72 75 |the copy| constru|
|00000730| 63 74 6f 72 20 69 6e 20 | 70 61 72 61 6d 65 74 65 |ctor in |paramete|
|00000740| 72 73 2e 20 20 4f 74 68 | 65 72 20 73 6f 75 72 63 |rs. Oth|er sourc|
|00000750| 65 73 20 61 72 65 20 76 | 61 72 69 6f 75 73 20 74 |es are v|arious t|
|00000760| 79 70 65 0a 63 6f 6e 76 | 65 72 73 69 6f 6e 73 2e |ype.conv|ersions.|
|00000770| 20 20 43 2b 2b 20 69 73 | 20 73 6c 6f 77 65 72 20 | C++ is| slower |
|00000780| 6e 6f 74 20 62 65 63 61 | 75 73 65 20 69 74 27 73 |not beca|use it's|
|00000790| 20 61 6e 20 69 6e 68 65 | 72 65 6e 74 6c 79 20 73 | an inhe|rently s|
|000007a0| 6c 6f 77 65 72 20 6c 61 | 6e 67 75 61 67 65 2c 20 |lower la|nguage, |
|000007b0| 62 75 74 20 62 65 63 61 | 75 73 65 20 70 65 6f 70 |but beca|use peop|
|000007c0| 6c 65 0a 74 65 6e 64 20 | 74 6f 20 75 73 65 20 69 |le.tend |to use i|
|000007d0| 74 20 64 69 66 66 65 72 | 65 6e 74 6c 79 2e 20 20 |t differ|ently. |
|000007e0| 57 69 74 68 20 64 75 65 | 20 63 61 72 65 20 74 68 |With due| care th|
|000007f0| 65 72 65 20 73 68 6f 75 | 6c 64 20 62 65 20 6e 6f |ere shou|ld be no|
|00000800| 20 73 69 67 6e 69 66 69 | 63 61 6e 74 20 70 65 72 | signifi|cant per|
|00000810| 66 6f 72 6d 61 6e 63 65 | 20 68 69 74 2e 0a 0a 4f |formance| hit...O|
|00000820| 66 20 63 6f 75 72 73 65 | 2c 20 79 6f 75 72 20 6d |f course|, your m|
|00000830| 69 6c 61 67 65 20 6d 61 | 79 20 76 61 72 79 20 2e |ilage ma|y vary .|
|00000840| 2e 2e 0a 0a 52 61 79 0a | |....Ray.| |
+--------+-------------------------+-------------------------+--------+--------+